home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / fl / video / VideoError.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  2.1 KB  |  56 lines

  1. package fl.video
  2. {
  3.    use namespace flvplayback_internal;
  4.    
  5.    public class VideoError extends Error
  6.    {
  7.       
  8.       public static const INVALID_SOURCE:uint = 1004;
  9.       
  10.       flvplayback_internal static const ERROR_MSG:Array = ["Unable to make connection to server or to find FLV on server","No matching cue point found","Illegal cue point","Invalid seek","Invalid source","Invalid xml","No bitrate match, must be no default flv","Cannot delete default VideoPlayer","VideoPlayer.iNCManagerClass has not been set or its value is invalid","Null url parameter sent to load()","Skin is missing a required style definition or its value is invalid","Unsupported property","VideoPlayer.netStreamClientClass has not been set or its value is invalid"];
  11.       
  12.       public static const NULL_URL_LOAD:uint = 1009;
  13.       
  14.       public static const INVALID_XML:uint = 1005;
  15.       
  16.       flvplayback_internal static const BASE_ERROR_CODE:uint = 1000;
  17.       
  18.       public static const DELETE_DEFAULT_PLAYER:uint = 1007;
  19.       
  20.       public static const SHORT_VERSION:String = "2.1";
  21.       
  22.       public static const UNSUPPORTED_PROPERTY:uint = 1011;
  23.       
  24.       public static const ILLEGAL_CUE_POINT:uint = 1002;
  25.       
  26.       public static const INVALID_SEEK:uint = 1003;
  27.       
  28.       public static const NO_CONNECTION:uint = 1000;
  29.       
  30.       public static const MISSING_SKIN_STYLE:uint = 1010;
  31.       
  32.       public static const INCMANAGER_CLASS_UNSET:uint = 1008;
  33.       
  34.       public static const NO_BITRATE_MATCH:uint = 1006;
  35.       
  36.       public static const NETSTREAM_CLIENT_CLASS_UNSET:uint = 1012;
  37.       
  38.       public static const VERSION:String = "2.1.0.14";
  39.        
  40.       
  41.       private var _code:uint;
  42.       
  43.       public function VideoError(param1:uint, param2:String = null)
  44.       {
  45.          super("" + param1 + ": " + flvplayback_internal::ERROR_MSG[param1 - flvplayback_internal::BASE_ERROR_CODE] + (param2 == null ? "" : ": " + param2));
  46.          name = "VideoError";
  47.          _code = param1;
  48.       }
  49.       
  50.       public function get code() : uint
  51.       {
  52.          return _code;
  53.       }
  54.    }
  55. }
  56.